package com.flmz.friend.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flmz.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("tb_user")
public class User extends BaseEntity {

	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(value = "USER_ID", type = IdType.ASSIGN_ID)
	private Long userId;

	private String nickName;

	private String headImage;

	private Integer sex; // 1 男 2 女

	private String phone;

	private String code;

	private String email;

	private String wechat;

	private String schoolName;

	private String majorName;

	private String introduce;

	private Integer status; // 0 拉黑 1 正常
}